var app=angular.module('app',['ngRoute']);
app.config(['$routeProvider',function($routeProvider){//配置路由
	$routeProvider.when("/",{
		templateUrl:"tpl/list.html",
		controller:"list_ctrl"
	}).when("/add",{
		templateUrl:"tpl/add.html",
		controller:"add_ctrl"
	}).when("/manage",{
		templateUrl:"tpl/manage.html",
		controller:"manage_ctrl"
	}).when("/view",{
		templateUrl:"tpl/view.html",
		controller:"view_ctrl"
	}).when("/edit",{
		templateUrl:"tpl/add.html",
		controller:"add_ctrl"
	}).otherwise({redirectTo:"/"})
}])

